package com.message.controller;

import com.message.entity.MessageStructure;
import com.message.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/3/30 0030.
 */
@RestController

public class SendMessage {
    @Autowired
    private MessageService messageService;

    @PostMapping("/sendMessage")
    public void sendGroupMessage(@RequestBody MessageStructure messageStructure) {
        messageService.sendTestServiceMessage(messageStructure);
    }
}
